﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace web_api
{
    public class File
    {
        private string _kind;
        public string Filename { get; set; }
        public string Fileaddress { get; set; }
        public int FileID { get; set; }
        public int UserID { get; set; }

        public string Kind
        {
            set
            {
                _kind = value; 

            }
            get
            {
                if (_kind == "5")
                {
                    return "文档";
                }
                if (_kind == "3")
                {
                    return "视频";
                }
                if (_kind == "4")
                {
                    return "音乐";
                }
                if (_kind == "2")
                {
                    return "图片";
                }
                return "";
            }
        }


    }
}